﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCP.Master" AutoEventWireup="true" CodeBehind="MyOffers.aspx.cs" Inherits="University.Workshop.WebApp.MyOffers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style15
        {
            width: 58px;
        }
        .style16
        {
            width: 99px;
        }
        .style17
        {
            width: 121px;
        }
        .style18
        {
            width: 98px;
        }
        .style19
        {
            width: 61px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 812%; height: 104px;">
        <tr>
            <td>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="ProductName" runat="server" Font-Size="Large" ForeColor="Blue" Font-Bold="true"></asp:Label>
            </td>
        </tr>
                <tr>
            <td>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Buy It Now Price: "></asp:Label>
                <asp:Label ID="ProductPrice" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Image ID="Image1" runat="server" Height="128px" Width="139px" />
            </td>
        </tr>
        <tr>
        <td>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Text="This product doesn't have any offers" Visible="false"></asp:Label>
        </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dlWatchList" runat="server" BackColor="White" CellPadding="2" 
                    CellSpacing="2" ForeColor="Black" 
                    onselectedindexchanged="dlWatchList_SelectedIndexChanged" >
                    <HeaderStyle BorderStyle="Inset" />

            <FooterTemplate>
            </FooterTemplate>
                    <ItemTemplate>
                        <table style="width:141%; height: 50px;">
                            <tr>
                                <td class="style18">
                                    <asp:Label ID="Label3" runat="server" Text="Bidder Id: "></asp:Label>
                                    <asp:Label ID="SellerName" runat="server" Text='<%# Eval("BuyerId") %>'></asp:Label>
                                </td>
                                <td class="style17">
                                    <asp:Label ID="Label4" runat="server" Text="Offer Price: "></asp:Label>
                                    <asp:Label ID="OfferPrice" runat="server" 
                                        Text='<%# Eval("OfferPrice") %>'></asp:Label>
                                    <br />
                                    <asp:Label ID="OfferPrice0" runat="server" Text='<%# Eval("RelatedProduct.Currency") %>'></asp:Label>
                                </td>
                          
                                  <td class="style19">  
                                      <asp:Button ID="Accept" runat="server" 
                                          CommandArgument='<%# Eval("BuyerId")  %>' 
                                          onclick="Accept_Click1" Text="Accept" />
                                </td>
                                </td>
                                <td class="style15"> 
                                    <asp:Button ID="Decline" runat="server" 
                                        CommandArgument='<%# Eval("BuyerId")  %>' 
                                        onclick="Decline_Click1" Text="Decline" />
                                </td>


                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <br />
                <asp:Label ID="Errorlb" runat="server" ForeColor="Red" Visible="false"></asp:Label>
            </td>

        </tr>
    </table>
</asp:Content>
